<template>
  <div class="logo">
    <router-link key="expand" class="logo-link" to="/">
      <img v-if="logo" :src="logo" class="img-logo">
      <h1 class="title">{{ title }} </h1>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'Logo',
  data() {
    return {
      title: 'Template',
      logo: require('@/assets/logo.png'),
    }
  },
}
</script>

<style lang="scss" scoped>
// @import '~assets/scss/variables.scss';

.logo {
  position: relative;
  width: $sideBarWidth;
  height: 60px;
  line-height: 60px;
  text-align: center;
  overflow: hidden;
  .logo-link {
    height: 100%;
    width: 100%;
    .img-logo {
      width: 32px;
      height: 32px;
      vertical-align: middle;
      margin-right: 12px;
    }
    .title {
      display: inline-block;
      margin: 0;
      color: $logo-color;
      font-weight: 600;
      line-height: 60px;
      font-size: 20px;
      font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
      vertical-align: middle;
    }
  }
}
</style>
